package com.campus.dao;

import com.campus.model.CourseLearnUnit;
import com.campus.model.UnitCompletion;

import java.util.List;

public interface CourseLearnUnitDao {
    int createCourseLearnUnit(CourseLearnUnit unit);
    Integer getClassIdByCourseId(int courseId);
    List<Integer> getStudentInClassIdsByClassId(int classId);
    int insertStudentLearningBatch(int unitId, List<Integer> studentInClassIds);
    int deleteCourseLearnUnit(int unitId);

    int updateCourseLearnUnit(CourseLearnUnit unit);

    List<CourseLearnUnit> listAllCourseLearnUnits(); // 修改为查询所有
    // 获取所有学习单元的完成度
    List<UnitCompletion> getAllUnitsCompletion();
}
